import request from '@/utils/request'
// 查询数据列表
export function gatList(data) {
  return request({
    url: '/PB/PB_Material/QueryDataList',
    method: 'post',
    data
  })
}
// 保存数据
export function SaveData(data) {
  return request({
    url: '/PB/PB_Material/SaveData',
    method: 'post',
    data
  })
}
// 获取树数据列表
export function GetTreeDataList(data) {
  return request({
    url: '/PB/PB_MaterialType/GetTreeDataList',
    method: 'post',
    data
  })
}
// 获取存储
export function GetStorage() {
  return request({
    url: '/Base/Base_UserStor/GetStorage'
  })
}
// 查询所有数据
export function QueryAllData(data) {
  return request({
    url: '/PB/PB_Measure/QueryAllData',
    method: 'post',
    data
  })
}
// 供应商
export function QueryDataList(data) {
  return request({
    url: '/PB/PB_Supplier/QueryDataList',
    method: 'post',
    data
  })
}
// 客户、投料点
export function kehu(data) {
  return request({
    url: '/PB/PB_Customer/QueryDataList',
    method: 'post',
    data
  })
}
// 删除
export function shanchu(data) {
  return request({
    url: '/PB/PB_Material/DeleteData',
    method: 'post',
    data
  })
}
// 编辑获取数据
export function GetTheData(data) {
  return request({
    url: '/PB/PB_Material/GetTheData',
    method: 'post',
    data
  })
}
export function ExportToExcel() {
  return request({
    url: '/PB/PB_Customer/ExportToExcel',
    responseType: 'blob'
  })
}
export function shangExcel(data) {
  return request({
    url: '/PB/PB_Customer/Import',
    method: 'post',
    data
  })
}
